<% @page_title = "最新学校消息 | 多背一公斤 - 灾后学校重建计划" -%>

<% content_for :sidebar do -%>
  <h2><%= link_to "返回学校页面", :controller => '/dizhen/schools', :action => 'index' %></h2>
<% end -%>

<h1>最新的学校消息</h1>

<div class="uml">
  <ul class="mbt">
    <% @comments.each do |cmt| -%>
    <li class="mbtl"><%= avatar_for cmt.user, "large" %></li>
    <li class="mbtrdot"><%= link_to_user_page cmt.user, :target => '_blank' %> 在 <span class="tip"><%= cmt.created_at.to_date %></span>写了关于<%= link_to_school_page cmt.school, :target => '_blank' %>的消息</li>
    <% end -%>
  </ul>
</div>
<%= will_paginate @comments %>